#ifndef JXLDECODER_H
#define JXLDECODER_H

#include <QObject>
#include <QProcess>

class jxlDecoder: public QObject
{
    Q_OBJECT
public:
    jxlDecoder();
    bool inputTask(QStringList input,QStringList output,QStringList parameter,bool deleteSource=false);
    int state();

signals:
    void convertLog(QString);
    void convertResult(int num,int result);//

private:
    void Convert();
    void Verify();
    const QString djxlFilename="jxl-x64-windows-static/djxl.exe";

    QProcess *jxldecoder;
    //QProcess *jxldecoder=new QProcess(this);

    QStringList inputList;
    QStringList outputList;
    QStringList parameterList;

    QStringList TaskList;
    int currentTaskNum=0;
    int errTaskNum=0;

    bool delSource=false;

};

#endif // JXLDECODER_H
